package com.oa.service.impl;

import java.util.List;

import com.oa.bean.bazaar.Inten;
import com.oa.bean.work.Emp;
import com.oa.dao.BazaarDAO;
import com.oa.service.BazaarService;

public class BazaarServiceImpl implements BazaarService {
	private BazaarDAO bazaarDAO;

	public void setBazaarDAO(BazaarDAO bazaarDAO) {
		this.bazaarDAO = bazaarDAO;
	}
	
	@Override
	public Emp zhaoAdminAdd(Emp emp) {
		return bazaarDAO.zhaoAdminAdd(emp);
	}

	@Override
	public Emp zhaoAdminUpdate(Emp emp) {
		return bazaarDAO.zhaoAdminUpdate(emp);
	}

	@Override
	public void zhaoAdminDong(Emp emp) {
		bazaarDAO.zhaoAdminDong(emp);		
	}	

	@Override
	public List<Emp> zhaoAdminQueryPager(int page, int pageSize) {
		return bazaarDAO.zhaoAdminQueryPager(page, pageSize);
	}

	@Override
	public void save(Inten t) {
		bazaarDAO.save(t);
	}

	@Override
	public void delete(Inten t) {
		bazaarDAO.delete(t);
	}

	@Override
	public Inten update(Inten t) {
		return bazaarDAO.update(t);
	}

	@Override
	public List<Inten> queryAll() {
		return bazaarDAO.queryAll();
	}

	@Override
	public Inten queryById(Integer id) {
		return bazaarDAO.queryById(id);
	}

	@Override
	public List<Object> intenQueryPager(Integer page, Integer pageSize) {
		return bazaarDAO.intenQueryPager(page, pageSize);
	}

	@Override
	public List<Object> intenPagerByName(Integer page, Integer pageSize, String name) {
		return bazaarDAO.intenPagerByName(page, pageSize, name);
	}

	@Override
	public List<Object> intenPagerByAge(Integer page, Integer pageSize, Integer age) {
		return bazaarDAO.intenPagerByAge(page, pageSize, age);
	}

	@Override
	public List<Object> intenPagerByIntroduce(Integer page, Integer pageSize, String introduceName) {
		return bazaarDAO.intenPagerByIntroduce(page, pageSize, introduceName);
	}

	@Override
	public List<Object> intenPagerByEducation(Integer page, Integer pageSize, String educationName) {
		return bazaarDAO.intenPagerByEducation(page, pageSize, educationName);
	}

	@Override
	public List<Object> intenPagerByCollege(Integer page, Integer pageSize, String collegeName) {
		return bazaarDAO.intenPagerByCollege(page, pageSize, collegeName);
	}

	@Override
	public List<Object> intenPagerByBirthplace(Integer page, Integer pageSize, String birthplaceName) {
		return bazaarDAO.intenPagerByBirthplace(page, pageSize, birthplaceName);
	}

}
